<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:80:"D:\phpStudy\PHPTutorial\WWW\cms\public/../application/admin\view\config\lst.html";i:1559804450;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ThinkPHP5.0</title>
    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="/static/admin/style/bootstrap.css" rel="stylesheet">
    <link href="/static/admin/style/font-awesome.css" rel="stylesheet">
    <link href="/static/admin/style/weather-icons.css" rel="stylesheet">
    <!--Beyond styles-->
    <link id="beyond-link" href="/static/admin/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="/static/admin/style/demo.css" rel="stylesheet">
    <link href="/static/admin/style/typicons.css" rel="stylesheet">
    <link href="/static/admin/style/animate.css" rel="stylesheet">
</head>
<body>
<button type="button" tooltip="添加用户" class="btn btn-sm btn-azure btn-addon"
        onClick="javascript:window.location.href = '<?php echo url('admin/config/add'); ?>'"><i class="fa fa-plus"></i> Add
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <table class="table table-bordered table-hover">
                        <thead class="">
                        <tr>
                            <th class="text-center" width="6%">ID</th>
                            <th class="text-center">中文名称</th>
                            <th class="text-center">英文名称</th>
                            <th class="text-center">默认值</th>
                            <th class="text-center">可选值</th>
                            <th class="text-center" width="12%">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if(is_array($confRes) || $confRes instanceof \think\Collection || $confRes instanceof \think\Paginator): $i = 0; $__LIST__ = $confRes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$conf): $mod = ($i % 2 );++$i;?>
                        <tr>
                            <td align="center"><?php echo $conf['id']; ?></td>
                            <td align="center"><?php echo $conf['cname']; ?></td>
                            <td align="center"><?php echo $conf['ename']; ?></td>
                            <td align="center"><?php echo (isset($conf['value']) && ($conf['value'] !== '')?$conf['value']:"未定义"); ?></td>
                            <td align="center"><?php echo (isset($conf['value']) && ($conf['value'] !== '')?$conf['value']:"未定义"); ?></td>
                            <td align="center">
                                <a href="<?php echo url('admin/config/edit',['id'=>$conf['id']]); ?>" class="btn btn-primary btn-sm shiny">
                                    <i class="fa fa-edit"></i> 编辑
                                </a>
                                <a href="#" onClick="warning('确实要删除吗', '<?php echo url('admin/config/del',['id'=>$conf['id']]); ?>')"
                                   class="btn btn-danger btn-sm shiny">
                                    <i class="fa fa-trash-o"></i> 删除
                                </a>
                            </td>
                        </tr>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                        </tbody>
                    </table>
                    <div style="padding-top:10px; text-align:right; ">
                    <?php echo $confRes->render(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="/static/admin/style/jquery_002.js"></script>
<script src="/static/admin/style/bootstrap.js"></script>
<script src="/static/admin/style/jquery.js"></script>
<!--Beyond Scripts-->
<script src="/static/admin/style/beyond.js"></script>
</body>
</html>